package cn.shop.admin.req;

import cn.shop.utils.constant.Constant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import java.time.LocalDateTime;

/**
 * @author : 李一涵
 * @since : 2022-10-8 13:01
 */
@Data
public class MainSiteGamesQueryReq {

    @DateTimeFormat(pattern = Constant.DATETIME_FORMAT)
    private LocalDateTime startTime;
    @DateTimeFormat(pattern = Constant.DATETIME_FORMAT)
    private LocalDateTime endTime;
    @Min(value = 1, message = "请输入每页记录数")
    private int size;
    @Min(value = 1, message = "请输入第几页")
    private int current;
    private Integer type;

}
